package ru.nosport.matrixaria.modules.user.test;

import org.apache.commons.configuration.Configuration;
import ru.nosport.matrixaria.modules.common.AppServerProcess;

/**
 * User: vfabr
 * Date: 28.09.2006
 * Time: 18:48:46
 */
public class StubAppServerProcess2 implements AppServerProcess {
	private boolean isRunning;
	private Configuration conf;

	public StubAppServerProcess2(Configuration _conf) {
		this.conf = _conf;
	}

	public StubAppServerProcess2() {
		this.isRunning = false;
	}

	public boolean moduleStart() {
		this.isRunning = true;
		return this.isRunning;  //To change body of implemented methods use File | Settings | File Templates.
	}

	//
	public boolean moduleStop() {
		this.isRunning = false;
		return !this.isRunning;  //To change body of implemented methods use File | Settings | File Templates.
	}

	//
	public boolean isModuleRunning() {
		return this.isRunning;  //To change body of implemented methods use File | Settings | File Templates.
	}

	//
	public String moduleStat() {
		return "Running: " + this.isRunning;  //To change body of implemented methods use File | Settings | File Templates.
	}

	//
	public String getMyName() {
		return "I'am StubAppServerProcess2";
	}

	//
	public String lieAct() {
		return "I'am lying";
	}
}
